﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sellDetail.aspx.cs" Inherits="SellerProject.sellDetail" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>购买明细</title>
    <link href="Css/base.css" rel="stylesheet" type="text/css" />
    <link href="Css/detail.css" rel="stylesheet" type="text/css" />
    <link href="Css/comon.css" rel="stylesheet" type="text/css" />
    <link href="Scripts/jquery-ui/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="Scripts/AsyncBox/skins/ZCMS/asyncbox.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui/jquery-ui.js" type="text/javascript"></script>
    <script src="Scripts/jquery.loadthumb.js" type="text/javascript"></script>
    <script src="Scripts/jquery.corner.js" type="text/javascript"></script>
    <script src="Scripts/AsyncBox/AsyncBox.v1.4.js" type="text/javascript"></script>
    <script src="Scripts/detail.js" type="text/javascript"></script>
</head>
<body>
<form id="Form1" runat="server">
    <input type="hidden" id="userSession" value="<%= Session["userNick"] %>" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="headBg">
            <div id="headTop"><p>欢迎来到淘我想淘网！<strong>您现在使用的是卖家版本！</strong><span><a href="helpCenter/sellhelpCenter.aspx">帮助中心</a></span></p></div>
        <div id="newHeader" >
        	<div>
                <a href="sellMain.aspx" class="logo hidetxt">返回首页</a>
             </div>
            <ul id="newNav">
                <li id="nav1"><a href="sellMain.aspx" class="hidetxt">所有需求</a></li>
                <li id="nav2"><a href="sellgoodCid.aspx" class="hidetxt">我的类别</a></li>
                <li id="nav3"><a href="sellReleased.aspx" class="hidetxt">已发布</a></li>
                <li id="nav4"><a href="helpCenter/sellhelpCenter.aspx?target=5" class="hidetxt">联系我们</a></li>
             </ul>
         </div>
   </div>
    <div id="main">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <asp:ListView ID="myDetails" runat="server" 
                    onitemcommand="myDetails_ItemCommand" 
                    onitemdatabound="myDetails_ItemDataBound">
                    <LayoutTemplate>
                        <div>
                            <div id="itemPlaceholder" runat="server"></div>
                        </div>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <asp:HiddenField ID="ReleaseName" runat="server" Value='<%# Eval("ReleaseName")%>' />
                        <asp:HiddenField ID="buyid" runat="server" Value='<%# Eval("Id")%>' />
                        <asp:HiddenField ID="Status" runat="server" Value='<%# Eval("Status")%>' />
                        <asp:HiddenField ID="title" runat="server" Value='<%# Eval("Title")%>' />
                        <div class="title"><h2><%# Eval("Title") %></h2></div>
                        <div>
                            <div id="imgdiv">
                                <img id="myImgs" src='<%# Eval("imgsrc").ToString().Trim()==""?"/images/webkey_1_009.png":Eval("imgsrc") %>' style="display:none;" alt="" />
                            </div>
                            <div id="infordiv">
						        <div style="text-align:left;height:200px;">
                                    <div style="float:left">
							            <dl style="width:350px;height:200px;">
								            <dt>期望价格：</dt>
								            <dd><span class="price"><%# Eval("ExpectpricesMax")%></span>元</dd>
								            <dt>宝贝名称：</dt>
								            <dd><%# Eval("name") %></dd>
								            <dt>发布人：</dt>
								            <dd><%# Eval("ReleaseName")%></dd>
								            <dt>发布时间：</dt>
								            <dd><%# Eval("Starttime", "{0:yyyy-MM-dd HH:mm:ss}")%></dd>
								            <dt>购买数量：</dt>
								            <dd style="color:#FF8000"><%# Eval("Count") %></dd>
								            <dt>购买地区：</dt>
								            <dd><%# Eval("Province").ToString().Trim() == "" ? "随便那里都可以" : Eval("Province").ToString() +"  "+ Eval("City").ToString()%></dd>
								            <dt>其他：</dt>
								            <dd><span><%# Eval("Keyprop") %></span>&nbsp&nbsp&nbsp&nbsp<span>送给<%# Eval("Owner") %></span></dd>
							            </dl>
                                    </div>
                                    <div class="sellercount">
                                        <div class="clearfix">
                                            <div id="buydiv" class="buyer">淘友情况</div>
                                            <div class="honer"></div>
                                            <div id="selldiv" class="seller">卖家情况</div>
                                        </div>
                                        <div class="bscontent">
                                            <div id="buyinfor">
                                                <span class="sellspan"><h2 style="color:#FF8000"><%# Eval("Respondcount").ToString().Trim()%></h2>位淘友有兴趣</span>
                                                <asp:Panel runat="server" id="releasebtn" style="height:70px;width:100%;">
                                                    <a href='javascript:Abox("sellGoodsel.aspx?binfo=<%# Eval("Id") %>")' style="background:'Css/screenPic/button.png' no-repeat;"><img src="Css/screenPic/button.png" alt="" /></a>
                                                </asp:Panel>
                                            </div>
                                            <div id="sellinfor" class="hideinfor">
                                                <span class="sellspan"><h2 style="color:#3396e4"><%# Eval("SellerCount").ToString().Trim()%></h2>位卖家提供商品</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                            <div>
					            <div class="information">
                                    <%# Eval("Information").ToString().Trim() %>
                                </div>
                            </div>
                        </div>
                    </ItemTemplate>
                    <EmptyDataTemplate>
                        <div class="wp">
                            <div id="cnt" class="c12">
                                <div class="try">
                                    <p>您可以选择访问：</p>
                                    <ul>
                                        <li><a href="sellMain.aspx">网站首页</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </EmptyDataTemplate>
                </asp:ListView>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="myDetails" EventName="ItemCommand" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:Panel ID="Sellpanel" runat="server" CssClass="sellerinfor">
            <asp:Panel ID="titlePanel" runat="server" HorizontalAlign="Left">
                <ul style="border-bottom: 2px solid #5CB7E5;">
                    <li class="selltitle">
                        <img src="images/seller.png" alt="" style="vertical-align:middle" />
                    </li>
                </ul>
            </asp:Panel>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Panel ID="sortPanel" runat="server" CssClass="sortcss" Visible="False">
                        <span style="float:left; margin-right:5px;">排序：</span>
                        <asp:Label ID="sortspan" runat="server" CssClass="sortspan" Text="价格由低到高"></asp:Label>
                        <div class="clearfix"></div>
                        <ul id="sortul">
                            <li><asp:LinkButton ID="priceasc" CssClass="by-price-asc" runat="server" onclick="priceasc_Click">价格由低到高</asp:LinkButton></li>
                            <li><asp:LinkButton ID="pricedesc" CssClass="by-price-desc" runat="server" 
                                    onclick="pricedesc_Click">价格由高到低</asp:LinkButton></li>
                            <li><asp:LinkButton ID="honordesc" CssClass="by-credit-desc" runat="server" 
                                    onclick="honordesc_Click">卖家信誉由高到低</asp:LinkButton></li>
                            <li><asp:LinkButton ID="countdesc" CssClass="by-sale-desc" runat="server" 
                                    onclick="countdesc_Click">浏览次数由高到低</asp:LinkButton></li>
                        </ul>
                    </asp:Panel>
                    <asp:GridView ID="SellView" runat="server" 
                        EnableModelValidation="True" AutoGenerateColumns="False" GridLines="None" 
                        ShowHeader="False" onrowdatabound="SellView_RowDataBound">
                        <Columns>
                            <asp:TemplateField> 
                                <ItemTemplate>
                                    <div id="imgparent">
                                        <asp:Image ID="Sellimg" CssClass="imgcss tip" runat="server" ImageUrl='<%# Eval("Piclink").ToString().Trim()==""?"images/webkey_1_009.png":Eval("Piclink") %>' />
                                    </div>
                                </ItemTemplate>
                                <ItemStyle Width="130px" CssClass="rowcss" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div style="height:40px;">
                                        <div class="fontbreak">
                                            <a href="<%# Eval("Tradelink") %>" target="_blank" onclick="openbuy('<%# Eval("Id") %>')">
                                                <span><%# Eval("Infomation").ToString().Trim().Length >= 180 ? Eval("Infomation").ToString().Trim().Substring(0, 175) + "..." : Eval("Infomation").ToString().Trim() %></span>
                                            </a>
                                        </div>
                                    </div>
                                    <div>
                                        <ul>
                                            <li class="licss">
                                                <span class="sellerdetil">
                                                    价格：
                                                    <asp:Label runat="server" ID="price" CssClass="fontcolor">
                                                        <strong>￥<%# Eval("Price", "{0:f2}").Trim() == "" ? "0.00" : Eval("Price", "{0:f2}").Trim()%></strong></asp:Label></span><div class="clearfix"></div>
                                            </li>
                                            <li class="licss">
                                                <span class="sellerdetil">卖家信誉：
                                                    <img src="images/topsorce/<%# int.Parse(Eval("Honor").ToString())<= 0 ? 1 : Eval("Honor") %>.gif" alt="" style="vertical-align:middle;" />
                                                </span>
                                                <span class="sellerdetil">地区：
                                                    <span class="fontcolor">
                                                        <strong><%# Eval("State") %>&nbsp;&nbsp;&nbsp;<%# Eval("City") %></strong></span></span></li>
                                        </ul>
                                    </div>
                                </ItemTemplate>
                                <ItemStyle Width="580px" HorizontalAlign="Left" VerticalAlign="Top" 
                                    CssClass="contentd rowcss" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div style="height:100px;text-align:center;line-height:100px;">
                                        <label title="浏览次数" style="color:#666;">
                                            浏览<strong style="color:#3396E4"><%# Eval("count")%></strong>次
                                        </label> 
                                    </div>
                                </ItemTemplate>
                            <ItemStyle Width="120px" CssClass="contentd rowcss" HorizontalAlign="Left" />
                            </asp:TemplateField>


                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div style="height:30px;">
                                        <asp:HiddenField ID="rname" runat="server" Value=<%# Eval("ReleaseName")%> />
                                        <h4 style="color:#3396e4;"><%# Eval("ReleaseName")%></h4>
                                    </div>
                                    <div style="margin-bottom:10px;">
                                        <span style="color:#3396e4;"><%# Eval("Releasetime").ToString()%></span>
                                    </div>
                                    <a href="<%# Eval("Tradelink") %>" target="_blank"><img src="images/buybtn.png" alt="" /></a>
                                </ItemTemplate>
                                <ItemStyle VerticalAlign="Bottom" HorizontalAlign="right" CssClass="linktd rowcss" Width="150px" />
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            <div  class="emptycss">
                                <span>暂无卖家提供商品</span>
                            </div>
                        </EmptyDataTemplate>
                        <RowStyle CssClass="rowbackcolor" />
                    </asp:GridView>
                    <webdiyer:aspnetpager id="AspNetPager" runat="server" HorizontalAlign="Center"
                    Width="100%" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="Left" 
                    Direction="LeftToRight" FirstPageText="首页" LastPageText="尾页" LayoutType="Div" 
                    NextPageText="下一页" PageIndexBoxType="TextBox" PrevPageText="上一页" 
                    ShowPageIndexBox="Never" PageSize="7" onpagechanged="AspNetPager_PageChanged" ShowNavigationToolTip="True" 
                    EnableTheming="False" NumericButtonCount="6" AlwaysShow="True" 
                        CssClass="pagercss" CurrentPageButtonPosition="Center" UrlPageIndexName="currpage" 
                        Wrap="False" CurrentPageButtonClass="currentpage" UrlPaging="False" 
                        Visible="False"></webdiyer:aspnetpager>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="AspNetPager" EventName="PageChanged" />
                    <asp:AsyncPostBackTrigger ControlID="priceasc" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="countdesc" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="honordesc" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="pricedesc" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            <script type="text/javascript">
                Sys.Application.add_load(function () {
                    var form = Sys.WebForms.PageRequestManager.getInstance()._form;
                    form._initialAction = form.action = window.location.href;
                }); 
            </script>
        </asp:Panel>
    </div><%Response.WriteFile("footer.inc"); %>
</form>
</body>
</html>
